package net.system.sys.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

import net.system.base.bean.SSysuser;
import net.system.sys.dao.CSystemDAO;
@Repository
public class CSystemDAOImpl extends SqlMapClientDaoSupport implements CSystemDAO {

	@Override
	public SSysuser selectUserById(String userId) {
        SSysuser record = (SSysuser) getSqlMapClientTemplate().queryForObject("system.selectUserById", userId);
        return record;
	}

	@Override
	public List<Map> selectModuleByRole(String type) {
		List<Map> list = getSqlMapClientTemplate().queryForList("system.selectModuleByRole", type);
		return list;
	}

}
